#ifndef PHYSICOBJECT_H
#define PHYSICOBJECT_H

#include "GameObject.h"

class PhysicObject : public GameObject
{
public:
    PhysicObject();
    ~PhysicObject();

    virtual void createPhysicBody();
    virtual void beginContact(b2Fixture *ownFixture, b2Fixture *otherFixture, b2Contact *contact);
    virtual void endContact(b2Fixture *ownFixture, b2Fixture *otherFixture, b2Contact *contact);

    virtual void update(float dt);
    virtual void removeObject();

public:
    bool isActive;
    signed char group;
    b2Body *physicBody;
};

#endif // PHYSICOBJECT_H
